<template>
  <div>
    <LazyLoadTab v-model="activeName" :tabMenus="menus" :destroyOnClose="true"></LazyLoadTab>
  </div>
</template>

<script>
import { getAppId } from '@/assets/js/auth';//获取登录用户


export default {
  props:{
    type: {
      type: String,
      default: 'show'
    },
    rowData: {
      type: Object,
      default: () => ({})
    }
  },
  name: 'Detail',
  data() {
      let arcfox = getAppId()=="arcfox"?true:false;
      let title360 = '客户360视图'
      if(this.$route.path=='/potenCus/customer/customerFollowInfo/index'){//跟进管理
        title360 = '线索评级信息'
      }
      if(arcfox){
         title360 = '';
      }

    return {
      activeName: '基本信息',
      menus: [
        {
          title: '基本信息',
          path: 'potenCus/customer/potenCusManage/cluesInfo',
          params: { rowData: this.rowData }
        },
        {
          title: '接触记录',
          path: 'potenCus/customer/potenCusManage/contactRecord',
          params: { rowData: this.rowData }
        },
        {
          title: '相关线索',
          path: 'potenCus/customer/potenCusManage/aboutClues',
          params: { rowData: this.rowData }
        },
        {
          title: '变更历史',
          path: 'potenCus/customer/potenCusManage/changeHistory',
          params: { rowData: this.rowData }
        },
         {
          title: title360,
          path: 'potenCus/customer/potenCusManageOEM/clueLevelModel',
          disabled:arcfox,
          params: { rowData: this.rowData }
        },
      ],
    };
  },
  methods: {
    tabRefresh(){
      let tabActiveName = this.activeName;
      if (this.menus[0].title === this.activeName) {
        this.activeName = this.menus[1].title
      } else {
        this.activeName = this.menus[0].title
      }
    }
  },
};
</script>

<style lang="less" scoped>
</style>
